/**
 * There are <a href="https://github.com/thinkgem/jeesite">JeeSite</a> code generation
 */
package com.chlitina.store.modules.base.dao;

import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Component;

import com.chlitina.store.common.persistence.BaseDao;
import com.chlitina.store.common.persistence.BaseDaoImpl;
import com.chlitina.store.modules.base.entity.StoreCardTemplateDuration;

/**
 * 时段护理卡模板DAO接口
 * @author liujiang
 * @version 2013-11-03
 */
public interface StoreCardTemplateDurationDao extends StoreCardTemplateDurationDaoCustom, CrudRepository<StoreCardTemplateDuration, Long> {
	@Modifying
	@Query("update StoreCardTemplateDuration set status=?1 where id = ?2")
	public int changeStatus(int status, Long id);
}

/**
 * DAO自定义接口
 * @author liujiang
 */
interface StoreCardTemplateDurationDaoCustom extends BaseDao<StoreCardTemplateDuration> {

}

/**
 * DAO自定义接口实现
 * @author liujiang
 */
@Component
class StoreCardTemplateDurationDaoImpl extends BaseDaoImpl<StoreCardTemplateDuration> implements StoreCardTemplateDurationDaoCustom {

}
